<#assign ctx="${rc.contextPath}">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<style type="text/css">
	body {
		margin-left: 0px;
		margin-top: 0px;
		background-image: url('${ctx}/images/seach_4.gif');
	}
</style>
<link href="${ctx}/css/common.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="${ctx}/js/jquery-1.4.4.min.js"></script>
</head>
<body>
<div align="center">
<form method="post" action="${ctx}/nrgl/save.htm" id="save">
  <table width="100%" height=100% border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height=25 id=location ><div align="left">
      	<img src="../images/location_arrow.gif" width="8" height="11" align="absmiddle"> 您的位置：通知公告管理&gt;&gt; 新增公告</div></td>
    </tr>
     <tr>
      <td valign="top" ><div>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><TABLE width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                <TBODY>
                  <TR>
                    <TD ><div align="center">
                      <table width="90%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><fieldset>
                            <legend>通知/内容信息</legend>
                            <TABLE width="100%" border="0" align="center" cellpadding="2" cellspacing="2">
                              <TBODY>
                              <TR>
                                  <TD align="right" >所属部门</TD>
                                  <TD align="left"> <SELECT name="group_id" id="group_id" size="1", style="width:210px">
									   <#if groupList??>
									   		<#list groupList as group>
									   			<#if group_index == 0>
									   				<option selected value="${group.group_id}"> ${group.group_name} </option>
									   				<#else>
									   					<option value="${group.group_id}"> ${group.group_name} </option>
									   			</#if>
	                    					</#list>
									   </#if>
									 </SELECT>
									 &nbsp;&nbsp;&nbsp;&nbsp;
									 类型 <SELECT name="doc_type" id="doc_type" size="1", style="width:100px">
					   				<option value="0"> 通知 </option>
					   				<option value="1"> 公告 </option>
								  </SELECT>
                                    </TD>
                                </TR><TR>
                                <TR>
                                  <TD align="right">标题</TD>
                                  <TD width="400" align="left">
                                  	<INPUT type="text" name="title" id="title" class="input-text" style="width:400px" size="60"> *</TD>
                                </TR>
                                <tr>
                                 <TD width="103" align="right" > 内容　</TD>
                                  <TD width="300" align="left">
                                  	<textarea rows="13" cols="100" name="content" id="content"></textarea>
                                  </td>
                                </TR>
                              </TBODY>
                            </TABLE>
                          </fieldset></td>
                        </tr>
                      </table>
                    </div></TD>
                  </TR>
                  <TR>
                    <TD ><div align="center">
                      </div></TD>
                  </TR>
                  <TR>
                    <TD ><div align="center">
                     <input name="Submit2" type="button" class="input-button" value="保 存" onClick="save()">
                      <img src="${ctx}/images/line.gif" width="5" height="15" align="absmiddle">
                      <input name="Submit23" type="button" class="input-button" value="重 填" onclick="reset()">
                      </div></TD>
                  </TR>
                </TBODY>
              </TABLE></td>
            </tr>
          </table>
          </div>
      </td>
    </tr>
  </table>
</form>
<input type="hidden" value="${error!""}" id="errorInfo">
</div>
	</body>
	<script>
	var error = $('#errorInfo').val();
	if (error == '1') {
		alert("保存成功！");
	} else if (error == '0') {
		alert("保存失败，请联系管理员！");
	}
	function save() {
		if ($.trim($('#title').val()) == '') {
			alert('标题不能为空！');
			return;
		}
		if ($.trim($('#content').val()) == '') {
			alert('内容不能为空！');
			return;
		}
		$('#save').submit();
	}
		
	function reset() {
		$('#title').val('');
		$('#content').val('');
		$('#comp_name').val('');
	}
</script>
</html>